new Vue({
    el: '#app',
    data: {
        message:"bayes",
        namejia:"jia"
    },
    methods: {

        sendDateJso :function () {
            self=this;
            $.get("./data?name="+"wodemingzi"+"&passwd=1234",function (data) {
                console.log(data);
                self.message=data.name;
            })

            /*jQuery.getJSON("./data",{name:app.name,passwd:"1234"},function (data) {

            })*/
        },
        sentPostData:function () {
            self=this;
            $.post("./datarequ",{name:"wode",passwd:"1234"},function (data) {
                console.log(data);
                self.message=data.name;
                console.log(data.url);
                window.location.href="./"+data.url;
            })
        },
        getDataJso:function () {
            self=this;
            $.get("./json",function (data) {
                console.log(data)
                self.message=data.mes;
            })
        }

    }
})